//
//  User.swift
//  jiuzhoudai
//
//  Created by zhaochengfeng on 2025/7/9.
//
import Foundation

struct User: Codable {
    let token: String
    let user_id: String
    var access_token : String
    var mobile: String
    var user: String

}


struct JQFXHMobileeeInfo: Codable {
    let type: Int


}

struct JQFXHCityffInfoData: Codable {
    let cityId : Int
    private let pid : Int?
    private let p_id : Int?
    var pId : Int { pid ?? p_id ?? 0 }
    var codeVaule : Int { code ?? Int(value ?? "") ?? 0}
    private let code : Int?
    private let value : String?
    let type : Int
    let index : String
    private let child: [JQFXHCityffInfoData]?
    private let children: [JQFXHCityffInfoData]?
    private let name : String?
    private let title : String?
    var nameKey : String {title ?? name ?? ""}
    let fullName : String
    var childrenKey : [JQFXHCityffInfoData] { child ?? children ?? [] }

    enum CodingKeys: String, CodingKey {
        
        case cityId = "id"
        case p_id
        case pid
        case fullName = "full_name"
        case index
        case child
        case children
        case value
        case code
        case type
        case name
        case title
    }
}
